﻿using SalesSys.DAL.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SalesSys.BLL
{
    public class DeliveryListBLL : BaseBLL<DeliveryList, Guid>
    {
      /// <summary>
      /// 通过formId获取出库单信息
      /// </summary>
      /// <param name="depotId"></param>
      /// <param name="commodityId"></param>
      /// <returns></returns>
      public DeliveryList GetDeliveryListInfo(Guid formId)
      {
          DeliveryList deliveryList = Rep.Entities.FirstOrDefault(p => p.FromId.Value == formId);
          return deliveryList;
      }
    }
}
